<template>
    <div>
        <button v-for="(item,index) in arr" :Key="index" @click="onclick(index)">
            {{item.num}}
        </button>
    </div>
</template>

<script>
    export default {
        name: "test",
        data() {
            return {
                arr: [
                    {
                        num:111
                    },
                    {
                        num:222
                    }
                ]
            }
        },
        methods:{
            onclick(index){
               this.arr[index].num += 1;
            }
        }
    }
</script>

<style scoped lang="less">

</style>